<?php
require 'config.php';

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <link type="text/css" href="css/reset.css" rel="stylesheet" media="all" />
        <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />
        <script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
        <title>Kontrax</title>
    </head>
    <body>
        <div id="main">
            <div id="kontraxGame">
                <table id="kontraxGameTable">
                    <?php
                        for($i=0;$i<$rowCount;$i++){
                            echo "<tr>";
                            for($j=0;$j<$colCount;$j++){
								$mySquare = new Square();
								$mySquare->x = $i;
								$mySquare->y = $j;
								if ($mySquare->is_wall()) {
									$mySquare->terrain_type = new TerrainType("wall", "wall.png");
								}
								echo "<td>" . $i . "x" . $j . " (" . $mySquare->is_playable() . ") " . $mySquare->terrain_type->name . "</td>";
                            }
                            echo "</tr>";
                        }
                    ?>
                </table>
            </div>
            <div id="kontraxControlPanel">
                <table id="kontraxControlPanelTable">
                    <tr>
                        <td>Geld:</td>
                        <td>Leben:</td>
                        <td>Tower:</td>
                    </tr>
                </table>
            </div>
        </div>
    </body>
</html>
